Psetpgrp(2) Oct. 1, 1991 Psetpgrp(2) NAME Psetpgrp - set the process group number for a process SYNOPSIS LONG Pgetpgrp(WORD pid, WORD neewgrp); DESCRIPTION Psetpgrp sets the process group of the process with process id pid to the number newgrp. The process must have the same user id as the current process, or must be a child of that process. If pid is 0, the process group of the current pro- cess is set. If newgrp is 0, then the process group is set equal to the process id of the process. RETURNS The new process group number, if successful. EFILNF if process pid does not exist. EACCDN if the process with id pid has a different user id and is not a child of the calling process. SEE ALSO Pkill(2), Pgetpgrp(2), Pgetpid(2) Version 0.9 Last change: MiNT Programmer's Manual 1